package com.vend.trade.view

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.vend.common.base.BaseActivity
import com.vend.common.constant.RouterConstant
import com.vend.common.mvp.IPresenter
import com.vend.trade.R
import kotlinx.android.synthetic.main.activity_trade_list.*

/**
 * Created by glendal on 2022/01/26.
 * 商家列表界面
 */
@Route(path = RouterConstant.TRAD_LIST_ACTIVITY)
class TradeListActivity : BaseActivity<IPresenter>() {
    override fun getContentLayoutId(): Int {
        return R.layout.activity_trade_list
    }

    override fun initView(savedInstanceState: Bundle?) {
        //点击跳转到店家详情界面
        tv_trade_detail.setOnClickListener {
            ARouter.getInstance().build(RouterConstant.TRAD_DETAIL_ACTIVITY).navigation()
        }
    }
}